package com.t235.gc.device.controller;

import com.t235.gc.AjaxResult;
import com.t235.gc.device.service.PartnersService;
import com.t235.gc.entity.Partners;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/partners")
public class PartnersController {

    @Autowired
    private PartnersService partnersService;

    @GetMapping("/admin/getAllPartnersList")
    public AjaxResult getAllPartnersList(Partners partners){
        return AjaxResult.success(partnersService.getAllPartnersList(partners));
    }
}
